package book;

public class BruteForceDemo {
    public static void main(String[] args) {
        int n = 1;
        for (int i = 0; i < 119; ++i) {
            n *= 7;
            n %= 306783353;
        }
        System.out.println("ans=" + n);
    }
}